package pojo;

import pojo.Person;

import java.io.Serializable;
import java.util.List;

/**
 * 该类必须应用Serializable接口，才能用于Socket传输对象
 */
public class ServerMessage implements Serializable {
    private static final long serialVersionUID = -6539605148478413174L;
    /**
     * 操作类型，具体类型可见@pojo.ServerInstruction
     */
    private ServerInstruction type;

    private List<Person> people;

    private int decisionMaker;

    //本局下注金额
    private int cost;

    private int totalCost;

    //当前玩家的游戏编号
    private int gamerNumber;

    //当前玩家剩余金额
    private int moneyLeft;

    private int winner;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public ServerInstruction getType() {
        return type;
    }

    public void setType(ServerInstruction type) {
        this.type = type;
    }

    public int getDecisionMaker() {
        return decisionMaker;
    }

    public void setDecisionMaker(int decisionMaker) {
        this.decisionMaker = decisionMaker;
    }

    public List<Person> getPeople() {
        return people;
    }

    public void setPeople(List<Person> people) {
        this.people = people;
    }

    public int getGamerNumber() {
        return gamerNumber;
    }

    public void setGamerNumber(int gamerNumber) {
        this.gamerNumber = gamerNumber;
    }

    public int getMoneyLeft() {
        return moneyLeft;
    }

    public void setMoneyLeft(int moneyLeft) {
        this.moneyLeft = moneyLeft;
    }

    public int getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(int totalCost) {
        this.totalCost = totalCost;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public int getWinner() {
        return winner;
    }

    public void setWinner(int winner) {
        this.winner = winner;
    }
}
